how does flat earth work